﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CS322_V11.entities;
using System.IO;

namespace CS322_V11
{
    public partial class EvidencijaForm : Form
    {
        public EvidencijaForm()
        {
            InitializeComponent();
        }

        private void EvidencijaForm_Load(object sender, EventArgs e)
        {
            try
            {
                Student student1 = new Student(1, "1234500", "Zoran", "Polić", 1);
                lbxStudenti.Items.Add(student1.Ime + " " + student1.Prezime);
            }
            catch (ArgumentException ex)
            {
                MessageBox.Show(ex.Message);
            }

            try
            {
                Student student5 = new Student(5, "1234503", "Vladimir", "", 1);
                lbxStudenti.Items.Add(student5.Ime + " " + student5.Prezime);
            }
            catch (ArgumentException ex)
            {
                MessageBox.Show(ex.Message);
            }


            Profesor profesor1 = new Profesor(1, "1234500", "Slobodan", "Jovanović", 1);
            lbxProfesori.Items.Add(profesor1.Ime + " " + profesor1.Prezime);
            Profesor profesor2 = new Profesor(2, "1234501", "Svetlana", "Cvetanović", 1);
            lbxProfesori.Items.Add(profesor2.Ime + " " + profesor2.Prezime);

            tbxBrojProfesora.Text = Profesor.KolikoProfesora();
            tbxBrojStudenata.Text = Student.KolikoStudenata();



        }
    }

   
   
    
}
